package org.ch00.test14;

/**
 * @author XCH
 * @date 2025 - 03 - 14
 */
public class GirlThread extends Thread{
    private Box box;
    private String name;

    public GirlThread(Box box, String name) {
        this.box = box;
        this.name = name;
    }
    public void run(){
        while (true) {
            Fruit fruit = new Fruit();
            box.take(name);
        }
    }
}
